/**
 * 数字添加千位分隔符
 * @param {Number} num 数据
 */
let ADD_SEPARATOR = num => {
  num += ''
  if (!num.includes('.')) num += '.'
  return num.replace(/(\d)(?=(\d{3})+\.)/g, function (val) {
    return val + ','
  }).replace(/\.$/, '')
}
const SEX_SHOW = sex => {
  if (Number(sex) === 0) {
    return '男'
  } else if (Number(sex) === 1) {
    return '女'
  }
}
export { ADD_SEPARATOR, SEX_SHOW }
